package top.coolrainly.module.pb.enums;

import top.coolrainly.framework.common.exception.ErrorCode;

/**
 * pb 错误码枚举类
 *
 * pb 系统，使用 1-004-000-000 段
 */
public interface ErrorCodeConstants {
    // ========== THEME 模块 1-004-000-000 ==========
    ErrorCode THEME_NOT_EXISTS = new ErrorCode(1_004_000_000, "党建主题不存在");

    // ========== ORGANIZATION 模块 1-004-001-000 ==========
    ErrorCode ORGANIZATION_NOT_EXISTS = new ErrorCode(1_004_001_000, "党组织信息不存在");
    ErrorCode ORGANIZATION_NOT_ALLOW_ONESELF = new ErrorCode(1_004_001_001, "上级组织不允许为当前组织");
    ErrorCode ORGANIZATION_NOT_ALLOW_CHILDREN = new ErrorCode(1_004_001_002, "上级组织不允许为当前下级组织");

    // ========== USER 模块 1-004-002-000 ==========
    ErrorCode MEMBER_USER_NOT_EXISTS = new ErrorCode(1_004_002_000, "用户信息不存在");
    ErrorCode USER_NAME_EXISTS = new ErrorCode(1_004_002_001, "账号已存在");
}
